int L = indices.length;
// shuffle indices
A.shuffle(indices, r);
int partition[][] = new int[num][];
int k = L / num;
if (r != null)
// shuffle indices
A.shuffle(indices, r);
int partition[][] = new int[num][];
int k = L / num;